home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ WinNT AutoLogin Enable.xpl < prev    next >
Text File  |  1999-06-13  |  1KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\Login\Auto Login"
  5. "NAME"="General"
  6. "VERSION"="1.72"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable auto login"
  9. "DESCRIPTION 1"="Auto login can be used to eliminate the "Press Ctrl+Alt+Del to login" screen."
  10. "DESCRIPTION 2"="Enable auto login ONLY if you have set the correct values before with the "Settings" plug-in."
  11. "AUTHOR"="Xteq Systems"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  14.  
  15.  
  16.  
  17.  
  18. sRP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  19. Sub Plugin_Initialize 
  20.  if RegPathExists(sRP) then
  21.   i=RegReadValue(srp&"AutoAdminLogon")
  22.   if i=1 then 
  23.    SetUIElement 1,true
  24.   end if
  25.  else
  26.   Disable
  27.  end if
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.   call RegWriteValue(srp&"AutoAdminLogon","1",1)
  37.  else
  38.   s=RegReadValue(srp&"AutoAdminLogon")
  39.  
  40.   if IsNull(s)=false and Len(s)>0 then
  41.      Call RegDeleteValue(srp&"AutoAdminLogon")
  42.   end if
  43.  end if
  44.  
  45.  Logoff
  46. End Sub
  47.  
  48. Sub Plugin_Terminate 
  49. End Sub
  50.  
  51.  
  52.  
  53.